<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class Room extends Model
{
    protected $table = "day_room";
//    查询列表
    public static function room($list_id)
    {
        return self::where('list_id',$list_id)->select();
    }
    //    查询详情
    public static function roomDetail($id)
    {
        return self::where('id',$id)->find();
    }
}
